<html> 
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<title>Google Maps JavaScript API v3 Example: MapTiler TMS Tiles</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>  
<script> 

var map;

var maptiler = new google.maps.ImageMapType({
	getTileUrl: function(coord, zoom) { 
		return zoom + "/" + coord.x + "/" + (Math.pow(2,zoom)-coord.y-1) + ".jpg";
	},
	tileSize: new google.maps.Size(256, 256),
	isPng: false
});

function initialize() {
	map = new google.maps.Map(document.getElementById("map_canvas"));
	map.setCenter(new google.maps.LatLng(0, 0));
	map.setZoom(1);
	map.setMapTypeId('satellite');
	map.overlayMapTypes.insertAt(0, maptiler);
}

</script> 
</head> 
<body style="margin:0px; padding:0px;" onload="initialize()">
  <div id="map_canvas" style="width:100%; height:100%"></div>
</body> 
</html> 
